package com.xuecheng.content.agent;

import com.xuecheng.common.domain.code.CommonErrorCode;
import com.xuecheng.common.domain.response.RestResponse;
import org.springframework.stereotype.Component;


@Component
public class SystemAgentFallBack implements SystemApiAgent {


    @Override
    public RestResponse queryCourseCategoryById(String courseCategoryId) {

        //自定义熔断的响应错误
        RestResponse<Object> response = RestResponse.validfail(CommonErrorCode.E_999981);

        return response;
    }
}
